﻿using Common.Result;
using Model.Dto.Employee;
using Model.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService
{
    public interface ICategoryService
    {
        Task<PageInfo> GetCategoryPageAsync(int page, int pageSize, string? name);
        Task<bool> SaveCategoryAsync(Category category, long id);
        Task<bool> DeleteCategoryByIdAsync(long id);
        Task<bool> EditCategoryAsync(Category category, long id);
        Task<Category> GetCategoryByIdAsync(long id);
        Task<List<Category>> GetCategorysByTypeAsync(int type);
    }
}
